of

public static FormData.Pair of(String key, String value)

Returns the Pair instance for the given key and value.

The key-value pair that represents a segment of a form data, for example a form field content.

Parameters

key

the form content segment key

value

the form content segment value. Can be empty if the key does not correspond to any value. For example, an empty form field

Throws

when key is empty or blank